for j in range(0,46):
    for t in range(0,23):
        if j +t ==30:
            print("鸡有",j,"只，兔有",t,"只")
            if j *2+ t==90:
             print("有鸡",j,"只，有兔",t,"只")
           # break

        #j += t
        #t = 30 - j
        #呃呃，寄 企图假设最少有一只鸡和兔，失败。




